package pers.kevin.fsm.factory;

import pers.kevin.fsm.operation.Operation;
import pers.kevin.fsm.operation.OperationCp;
import pers.kevin.fsm.operation.OperationLs;
import pers.kevin.fsm.operation.OperationRm;

public class OperationFactory {
    
    public static Operation createOperate(String operate){
        Operation operation = null;
        switch (operate) {
        case "ls":
            operation = new OperationLs();
            break;
        case "rm":
            operation = new OperationRm();
            break;
        case "cp":
            operation = new OperationCp();
            break;
        default:
            break;
        }
        
        return operation;
    }

}
